@color-gray: #818181;
@color-table-border: #eaeaea;
@table-border:1px solid @color-table-border;
@input-border-color: #eaeaea;
@input-border-hover-color: #c39c69;
@input-height: 32px;
@border-radius-sm: 2px;
@border-radius: 3px;
@border-radius-md: 4px;

:root {
  // 定义全局 的变量
  --primary-color: #c39c69;
  --primary-text-color: #1a1a1a;
  --left-menu-width: 240px;
  --text-size-small: 12px;
  --text-size-default: 13px;
  --text-size-middle: 16px;
  --text-size-large: 18px;
  --border-radius: @border-radius;
  --input-height: @input-height;
  --input-border-color: @input-border-color;
  --input-border-hover-color: @input-border-hover-color;
}

* {
  margin: 0;
  padding: 0;
}
#app {
  // 使用var引用全局变量
  font-size: var(--text-size-default);
  min-height: 100vh;
}
img {
  max-width: 100%;
  max-height: 100%;
}
body,
p,
pre,
input,
textarea {
  font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, Arial,
    Segoe UI, PingFang SC, Microsoft Yahei, Hiragino Sans GB, sans-serif,
    Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
  font-size: var(--text-size-default);
  color: var(--primary-text-color);
}
.d-flex {
  display: flex;
}
.d-f-center {
  display: flex;
  align-items: center;
}
.statistics {
  .item {
    padding: 10px 30px;
    display: flex;
    border-right: solid 1px #eee;
    &:last-child {
      border-right: none;
    }
  }
  .icon {
    .d-f-center;
    img {
      width: 24px;
    }
  }
  .content {
    margin-left: 10px;
  }
  .title {
    font-size: var(--text-size-small);
  }
  .value {
    color: #c39c69;
    font-size: var(--text-size-middle);
    font-weight: 600;
  }
}
.table-panel {
  .search-form {
    padding: 15px;
    .d-flex;
    span {
      vertical-align: middle;
      display: inline-block;
      margin: 0 10px;
    }
  }
}
.pro-input {
  border: @table-border;
  outline: none;
  border-radius: @border-radius-sm;
  padding: 5px 10px;
  &:focus,
  &:hover {
    border-color: #999;
  }
}
.pro-table {
  width: 100%;
  border-left: @table-border;
  border-top: @table-border;
  border-collapse: collapse;
  thead {
    background-color: #f6f6f6;
  }
  td {
    border-right: @table-border;
    border-bottom: @table-border;
    padding: 5px 10px;
    text-align: center;
  }
}
